﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='c_rt' uri='http://java.sun.com/jstl/core_rt'%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="<%=request.getContextPath() %>"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>lightness服装店后台管理系统 </title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<link href="${ctx}/static/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/static/js/jquery.js"></script>
<script src="${ctx}/static/js/validate/jquery.validate.js" type="text/javascript"></script>
<script src="${ctx}/static/js/validate/jquery.validate.messages.js" type="text/javascript"></script>
<script type="text/javascript">
		$(document).ready(function(){
			//聚焦第一个输入框
			$("#name").focus();

			//为inputForm注册validate函数
			$("#form1").validate({
				rules: {
					name:"required",password:"required",employedDate:"required",role:"required"	
				}
			});
		});	
</script>
</head>
<body>
<div id="wrap">

  <!--     主体从这开始    -->
  <div class="container">
    <h2><span>登录</span></h2>
     <form action="${ctx}/login" method="post" id="form1" onsubmit="return volidate();">
     <table class="global_table" cellpadding="0" cellspacing="0" > 
      <tr> 
      
        <th style="width:350px;">姓名：</th> 
        <td>
        <input type="text" id="name" class="g_inp width100" onfocus="this.className='g_inp inn width100'" onblur="this.className='g_inp width100'" 
        		name="name" value=""/>
        </td>
        </tr>
        
        <tr>
         <th style="width:350px;">密码：</th>
        <td>
        	<input type="password" id="password" class="g_inp width100" onfocus="this.className='g_inp inn width100'" onblur="this.className='g_inp width100'" 
        		name="password" value=""/>
         </td>
      </tr>
    </table> 
  
   <br />
   
    <center>
      <input type="submit" class="g_btn_blue" value="登  录" />
    </center>
    </form>
  </div>
  <!--     主体 end    -->
  <%@ include file="../commons/footer.jsp" %>
  <!-- 统计代码 begin-->
  <!--统计代码 end-->
</div>
</body>
</html>
